package com.hxzy.action;

import org.apache.struts2.ServletActionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.opensymphony.xwork2.ActionSupport;

public class AbstractAction extends ActionSupport {

    private static final long serialVersionUID = -6269967827121948290L;
    private Logger logger=LoggerFactory.getLogger(getClass());
    
    protected boolean isGet(){
        return "GET".equals(ServletActionContext.getRequest().getMethod());
    }
    
    protected boolean isPost(){
        return "POST".equals(ServletActionContext.getRequest().getMethod());
    }
    
    

}
